package com.nbsaas.boot.app.rest.convert;

import com.nbsaas.boot.app.data.entity.App;
import com.nbsaas.boot.app.api.domain.request.AppRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class AppEntityConvert  implements Converter<App, AppRequest> {

    @Override
    public App convert(AppRequest source) {
        App result = new App();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

